package com.getui.java.advancedpushmessage;

import com.getui.java.COMM;
import com.gexin.rp.sdk.base.IAliasResult;
import com.gexin.rp.sdk.http.IGtPush;

public class AliasFunction2 {
	static String Alias = "个推1";

	public static void main(String[] args) throws Exception {
		IGtPush push = new IGtPush(COMM.host, COMM.appKey, COMM.masterSecret);

		IAliasResult queryClient = push.queryClientId(COMM.appId, "aliastest");
		System.out.println("结果状态：" + queryClient.getResult());
		System.out.println("根据别名获取的CID：" + queryClient.getClientIdList());

		queryClient = push.queryClientId(COMM.appId, Alias);
		System.out.println("结果状态：" + queryClient.getResult());
		System.out.println("根据别名获取的CID：" + queryClient.getClientIdList());
	}
}